//index.js
//获取应用实例
var app = getApp()
Page({
    data: {
        userInfo: {},
        canIUse: wx.canIUse('button.open-type.getUserInfo'),
        animation: '',
        aaa: wx.getStorageSync('openid'),
    },
    // 文字旋转 
    rotate3d: function() {
        var animation = wx.createAnimation({
            duration: 5000,
            timingFunction: 'ease'
        })
        //rotate3d: 参数 x,y,z轴,  翻转度数
        //其中x,y,z轴为0-1范围，y轴设置为1，代表以y轴为旋转轴
        animation.rotate3d(0, 1, 0, 180).step()
        this.setData({
            rotate3dA: animation.export()
        })
    },


    //事件处理函数
    bindViewTap: function() {
        wx.navigateTo({
            url: '../logs/logs'
        })
    },
    onLoad: function() {
        console.log(this.data);
    },
    onReady: function(){
        console.log(this.data);
    }


})
